<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./OL_SDK/include-openlayers-local.js"></script>
</head>

<body>
    <script>
        // var attr = [
        //     {name:"name",type:"string",value:"武汉"},
        //     {name:"area",type:"number",value:1200}
        // ]
        // // var attrName= ["name","area"];
        // // var attrValue= ["武汉",1200]
        // var attrName =attr.map(item=>item.name);
        // console.log(attrName)
        var arr = [[114, 30], [120, 40]]
        /*
         var pointObj = new Array();
            pointObj[0] = new Zondy.Object.Point2D(114, 30);
            pointObj[1] = new Zondy.Object.Point2D(120, 30);
            pointObj[1] = new Zondy.Object.Point2D(130, 30);
         */
        var result = arr.map(item => {
            return new Zondy.Object.Point2D(item[0], item[1]);
        })
        console.log(result)
    </script>
</body>

</html>